package truef.reorder.domain;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import edu.zut.cs.software.base.domain.BaseTreeEntity;
@Table(name = "T_ReturnWindow")
@Entity
@NamedQueries({ @NamedQuery(name = "ReturnWindow.getRoot", query = "select g from ReturnWindow g where g.parent is null") })
public class ReturnWindow extends BaseTreeEntity<ReturnWindow>{
	
	private static final long serialVersionUID = 2585750556L;
	@Column(name = "Return_reason")
	String ReturnReason;      //退款原因
	
	@Column(name = "Refund_condition")
	String RefundCondition;   //退款详情
	public String getRefundCondition() {
		return RefundCondition;
	}

	public void setRefundCondition(String refundCondition) {
		RefundCondition = refundCondition;
	}

	@Column(name = "ReturnOrders")
	@OneToMany(mappedBy = "returnWindow", cascade = CascadeType.REMOVE, fetch = FetchType.EAGER)
	Set<ReturnOrder> returnorders;

	public String getReturnReason() {
		return ReturnReason;
	}

	public void setReturnReason(String returnReason) {
		ReturnReason = returnReason;
	}



	
	}


